package com.example.myapplication;

import android.app.Application;

import com.lzy.okgo.OkGo;

import java.util.HashMap;
import java.util.Objects;

public class HttpHelp {
    private static volatile HttpHelp HttpHelp;
    private String apiUrl = "";
    private HashMap<String, String> common = null;


    public static HttpHelp get() {
        if (HttpHelp == null) {
            synchronized (HttpHelp.class) {
                if (HttpHelp == null) {
                    HttpHelp = new HttpHelp();
                }

            }
        }
        return HttpHelp;
    }

    public void init(Application app, String url, HashMap<String, String> hashMap) {
        this.apiUrl = url;
        this.common = hashMap;
     OkGo.getInstance().init(app);
    }

    public HttpHelp ready(String cotroller, String action) {
      queryUrl+=key + "=" + value + "&";
        return HttpHelp;
    }
    Public
}